package revontuli.aMHD.dataclasses;

import android.text.format.Time;

public class Departure implements Comparable<Departure>{

	public int lineID;
	public int lineDirection;
	public int stopID;
	public Time departureTime;
	public int scheduleType;
	public int exceptionalRouteID;
	public int lineRevision;
	
	public String lineName;
	public int lineTypeID;
	public String terminusStopName;
	
	public Departure(int line_id, int line_direction, int stop_id) {
		this.lineID = line_id;
		this.lineDirection = line_direction;
		this.stopID = stop_id;
		this.departureTime = new Time();
	}
	
	@Override
	public int compareTo(Departure another) {
		return Time.compare(this.departureTime, another.departureTime);
	}
	
}
